//
//  QBPopView.h
//  Qianbao
//
//  Created by liyan1 on 13-8-20.
//  Copyright (c) 2013年 qianwang365. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MEPopView;

#if NS_BLOCKS_AVAILABLE
typedef void (^MEPopViewBlock)(MEPopView *view);
#endif


@interface MEPopView : UIView

- (id)initWithTitle:(NSString *)title saveTitle:(NSString *)saveTitle cancelTitle:(NSString *)cancelTitle height:(float)height;
- (id)initWithTitle:(NSString *)title saveTitle:(NSString *)saveTitle cancelTitle:(NSString *)cancelTitle height:(float)height  inView:(UIView *)view;
- (id)initWithTitle:(NSString *)title icon:(UIImage *)icon  saveTitle:(NSString *)saveTitle cancelTitle:(NSString *)cancelTitle height:(float)height;
- (id)initWithTitle:(NSString *)title icon:(UIImage *)icon saveTitle:(NSString *)saveTitle cancelTitle:(NSString *)cancelTitle height:(float)height inView:(UIView *)view;

@property (nonatomic, assign) BOOL                       touchOtherHide;//默认为NO

@property (nonatomic, retain) UIView                     *contentView;

@property (nonatomic, assign) UIColor                    *contentBlackColor;

@property (nonatomic, assign) CGFloat                    contentHeight;

- (void)setSaveblock:(MEPopViewBlock)saveblock cancelBlock:(MEPopViewBlock)cancelBlock;

- (void)show:(BOOL)animated;

- (void)hide:(BOOL)animated;

- (void)cancelALL;

- (void)moveUpInset:(float)upInset;

- (UIImage *)titleBackgroundImage;
- (UIImage *)bottomBackgroundImage;
- (UIImage *)saveBtnImage;
- (UIButton *)cancelBtn;
- (UIColor *)titleColor;
- (UIColor *)titleShadowColor;
@end